package com.gitee.wsl.compose.ext

import androidx.compose.runtime.MutableState

/**
 * Extension function for [MutableState] to update the tick value.
 * Increments the current value by 1 and wraps around at `Int.MAX_VALUE`.
 */

fun MutableState<Int>.updateTick() {
    this.value = (this.value + 1) % Int.MAX_VALUE
}
